<template>
	<div class="btn" @click="onBtnClick">
		<slot>确定</slot>
	</div>
</template>

<script type="text/ecmascript-6">
	export default {
		data() {
			return {
			}
		},
		methods: {
			onBtnClick(){
				this.$emit("click");
			}
		}
	}
</script>

<style scoped>
	.btn {
		background-color: blue;
		width: 100px;
		height:40px;
		border-radius: 20px;
		text-align: center;
		line-height: 40px;
	}
</style>
